package com.zjw.algorithm.ref;

public class ARefCount<T> extends RefCount<T> {
    public ARefCount(T ref) {
        super(ref);
    }

    public ARefCount(T ref, Releaser<T> releaser) {
        super(ref, releaser);
    }

    @Override
    public synchronized T getOrNull() {
        return super.getOrNull();
    }

    @Override
    public synchronized T get() {
        return super.get();
    }

    @Override
    public synchronized RefCount<T> refOrNull() {
        return super.refOrNull();
    }

    @Override
    public synchronized RefCount<T> ref() {
        return super.ref();
    }

    @Override
    public synchronized int getRefCount() {
        return super.getRefCount();
    }

    @Override
    public synchronized void release() {
        super.release();
    }

    @Override
    public synchronized boolean isRelease() {
        return super.isRelease();
    }

    @Override
    public synchronized void gc() {
        super.gc();
    }
}
